package com.wb3.organizer.action;

import com.opensymphony.xwork2.ActionSupport;

public class ForwardAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String operatePage;

	public String getOperatePage() {
		return operatePage;
	}

	public void setOperatePage(String operatePage) {
		this.operatePage = operatePage;
	}

	@Override
	public String execute() throws Exception {
		if(operatePage == null || operatePage.equals("")){
			return SUCCESS;
		}else{
			if(operatePage.equals("noteCreateOK")){
				return "noteCreateOK";
			}else if(operatePage.equals("noteUpdateOK")){
				return "noteUpdateOK";
			}else if(operatePage.equals("noteDeleteOK")){
				return "noteDeleteOK";
			}else if(operatePage.equals("taskCreateOK")){
				return "taskCreateOK";
			}else if(operatePage.equals("taskUpdateOK")){
				return "taskUpdateOK";
			}else if(operatePage.equals("taskDeleteOK")){
				return "taskDeleteOK";
			}else if(operatePage.equals("contactCreateOK")){
				return "contactCreateOK";
			}else if(operatePage.equals("contactUpdateOK")){
				return "contactUpdateOK";
			}else if(operatePage.equals("contactDeleteOK")){
				return "contactDeleteOK";
			}else if(operatePage.equals("appointmentCreateOK")){
				return "appointmentCreateOK";
			}else if(operatePage.equals("appointmentUpdateOK")){
				return "appointmentUpdateOK";
			}else if(operatePage.equals("appointmentDeleteOK")){
				return "appointmentDeleteOK";
			}else if(operatePage.equals("accountUpdateOK")){
				return "accountUpdateOK";
			}else if(operatePage.equals("accountThemeOK")){
				return "accountThemeOK";
			}else{
			}
		}
		return ERROR;
	}

}
